<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      xmlns="http://www.w3.org/1999/xhtml"
      lang="en">
<head>
    <meta charset="UTF-8"/>
    <title>首页</title>
    <link href="../static/css/index.css" type="text/css" rel="stylesheet"/>
    <link rel="stylesheet" href="../static/layui/css/layui.css"/>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!--头部导航栏-->
    <div id="head" th:include="common/header :: common_head(user=${session.user})"></div>
    <!--左边菜单栏-->
    <div id="left_column" th:include="common/left_column :: left_column(menuList=${session.menuList})"></div>
    <!-- 内容主体区域 -->
    <div class="layui-body">
        <div style="padding: 15px;">
            <div class="index_cloum">
                <blockquote class="layui-elem-quote">
                    <span class="login_name"> [[${session.user.username}]]</span>
                    <span th:if="${userType} eq '1'">管理员</span>
                    <span th:if="${userType} eq '2'">老师</span>
                    <span th:if="${userType} eq '3'">同学</span>
                    ，你好！ 欢迎登录学生选课管理系统
                </blockquote>
                <blockquote class="layui-elem-quote">
                    <div class="notice_title"> [[${information.title}]]</div>
                    <div class="notice_content" id="content">

                    </div>
                    <div class="notice_date " >
                        2020-07-16
                    </div>
                </blockquote>
            </div>
        </div>
    </div>
</div>
</body>
<script src="../static/layui/layui.all.js"></script>
<script th:inline="javascript">
    layui.use('layer',function(){
        var layer = layui.layer,
            $ = layui.jquery;
        layer.ready(function(){
            var content = [[${information.content}]];
            document.getElementById('content').innerHTML = content;
        });
    });
</script>
</html>